home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / Checkboxes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.8 KB  |  74 lines  |  [TEXT/CWIE]

  1. /* Checkboxes.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct EverythingEngine;
  10.  
  11. //----------
  12. struct Checkboxes {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mStandard2Handle;
  17.     ControlHandle    mXxHandle;
  18.     ControlHandle    mCapTriangleLabel;
  19.     ControlHandle    mGraphic2Handle;
  20.     ControlHandle    mCapcicn2Label;
  21.     ControlHandle    mLight2Handle;
  22.     ControlHandle    mCapicl10Label;
  23.     ControlHandle    mLight3Handle;
  24.     ControlHandle    mCapicl11Label;
  25.     ControlHandle    mIcl8NextHandle;
  26.     ControlHandle    mCapICN2Label;
  27.     ControlHandle    mLR3Handle;
  28.     ControlHandle    mCapPICT2Label;
  29.     ControlHandle    mLR4Handle;
  30.     ControlHandle    mBevel2Handle;
  31.     ControlHandle    mNextAloneHandle;
  32.     ControlHandle    mNext3Handle;
  33.     ControlHandle    mNext4Handle;
  34. };
  35. typedef struct Checkboxes Checkboxes;
  36.  
  37. //----------
  38. Checkboxes*        NewCheckboxes ();
  39. void    DeleteCheckboxes        (Checkboxes*        window);
  40.  
  41. //----------
  42. //static:
  43. void    Checkboxes_Create    (AMDoc*            inDoc,
  44.                              DDocData*        inData);
  45.  
  46. //public:
  47. void    Checkboxes_Init        (Checkboxes*    self);
  48. void    Checkboxes_Free        (Checkboxes*    self);
  49.  
  50. void    Checkboxes_Open        (Checkboxes*    self,
  51.                              AMDoc*            inDoc,
  52.                              DDocData*        inData);
  53. void    Checkboxes_Close    (Checkboxes*    self);
  54.  
  55. void    Checkboxes_Track        (Checkboxes*    self,
  56.                                  ControlHandle    whichControl,
  57.                                   short             whichPart,
  58.                                  Point            where);
  59. void    Checkboxes_MouseIn        (Checkboxes*    self,
  60.                                  Point            where,
  61.                                  short            modifiers);
  62. void    Checkboxes_TypeIn        (Checkboxes*    self,
  63.                                  char            ch);
  64. void    Checkboxes_ExitCurField    (Checkboxes*    self);
  65. void    Checkboxes_DataChanged    (Checkboxes*    self,
  66.                                  long            inDataID);
  67. void    Checkboxes_Resize        (Checkboxes*    self);
  68. void    Checkboxes_Scroll        (Checkboxes*    self,
  69.                                  short            newValue,
  70.                                  short            oldValue);
  71.  
  72. Boolean        Checkboxes_DoCommand    (Checkboxes*    self,
  73.                                      long            inCommand);
  74.